package cn.redsoft.wechatapi.msg.req.generic;

import cn.redsoft.wechatapi.msg.req.RequestMsg;
import cn.redsoft.wechatapi.msg.req.RequestMsgType;

import com.thoughtworks.xstream.annotations.XStreamAlias;

@XStreamAlias("xml")
public class LocationRequestMsg extends RequestMsg {
	@XStreamAlias("Location_X")
	protected String location_X;
	@XStreamAlias("Location_Y")
	protected String location_Y;
	@XStreamAlias("Scale")
	protected String scale;
	@XStreamAlias("Label")
	protected String label;

	public LocationRequestMsg() {
		this.msgType = RequestMsgType.LOCATION;
	}

	public LocationRequestMsg(String toUserName, String fromUserName,
			Long createTime, long msgId) {
		super(toUserName, fromUserName, createTime, null, msgId);
		this.msgType = RequestMsgType.LOCATION;
	}

	public String getLocation_X() {
		return location_X;
	}

	public void setLocation_X(String location_X) {
		this.location_X = location_X;
	}

	public String getLocation_Y() {
		return location_Y;
	}

	public void setLocation_Y(String location_Y) {
		this.location_Y = location_Y;
	}

	public String getScale() {
		return scale;
	}

	public void setScale(String scale) {
		this.scale = scale;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	@Override
	public String toString() {
		return "LocationRequestMsg [location_X=" + location_X + ", location_Y="
				+ location_Y + ", scale=" + scale + ", label=" + label
				+ ", toUserName=" + toUserName + ", fromUserName="
				+ fromUserName + ", createTime=" + createTime + ", msgType="
				+ msgType + ", msgId=" + msgId + "]";
	}

}
